home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / t_unix / j109lxa4.tar / asy.h < prev    next >
C/C++ Source or Header  |  1994-06-04  |  1KB  |  51 lines

  1. #ifndef _ASY_H
  2. #define _ASY_H
  3.  
  4. #ifndef _GLOBAL_H
  5. #include "global.h"
  6. #endif
  7.  
  8. #ifndef _MBUF_H
  9. #include "mbuf.h"
  10. #endif
  11.  
  12. #ifndef _IFACE_H
  13. #include "iface.h"
  14. #endif
  15.  
  16. #ifdef UNIX
  17. #define ASY_MAX 32        /* I could say 256, but let's not overdo it */
  18. #else
  19. #define ASY_MAX 5               /* Five asynch ports allowed on the PC */
  20. #endif
  21.  
  22. #define SLIP_MODE       0
  23. #define AX25_MODE       1
  24. #define NRS_MODE        2
  25. #define UNKNOWN_MODE    3
  26. #define PPP_MODE        4
  27.  
  28. /* In 8250.c: */
  29. int asy_init __ARGS((int dev,struct iface *ifp,char *arg1,char *arg2,
  30.     int16 bufsize,int trigchar,char monitor,long speed,int force,int triglevel));
  31. int32 asy_ioctl __ARGS((struct iface *ifp,int cmd,int set,int32 val));
  32. int asy_speed __ARGS((int dev,long bps));
  33. int asy_send __ARGS((int dev,struct mbuf *bp));
  34.  
  35. int asy_stop __ARGS((struct iface *ifp));
  36. #ifndef UNIX
  37. int get_rlsd_asy __ARGS((int dev, int new_rlsd));
  38. #endif
  39. int get_asy __ARGS((int dev));
  40.  
  41. #ifndef UNIX
  42. /* In asyvec.asm: */
  43. INTERRUPT asy0vec __ARGS((void));
  44. INTERRUPT asy1vec __ARGS((void));
  45. INTERRUPT asy2vec __ARGS((void));
  46. INTERRUPT asy3vec __ARGS((void));
  47. INTERRUPT asy4vec __ARGS((void));
  48. #endif
  49.  
  50. #endif  /* _ASY_H */
  51.